package app.maker.metier.userIntf;

import java.util.List;

import javax.ejb.Remote;

import app.maker.entity.User;
import app.maker.error.UserException;
import app.maker.metier.entite.Authentification;

@Remote
public interface IGestionUser {

	public void creerUser(User monUser) throws UserException;
	
	public void bloquerUser(User monUser) throws UserException;
	
	public void debloquerUser(User monUser) throws UserException;
	
	public void supprimerUser(User monUser) throws UserException;
	
	public User consulterUserLogin(String login) throws UserException;
	
	public User consulterUserNom(String nom) throws UserException;
	
	public Authentification connect(Authentification user) throws UserException;
	
	public void updateUserDetails(User monUser) throws UserException;
	
	public User consulterUser(int id) throws UserException;
	
	public List<User> listAll();
	
	public List<User> listUserActif();
	
	public List<User> listUserBlock();
	
	public String toStringUser(User user);
}
